package com.wander.rep.formats;

import java.text.FieldPosition;
import java.text.Format;
import java.text.ParsePosition;

import com.wander.rep.DetailListActivity;
import com.wander.rep.patient.Location;
import com.wander.rep.patient.Patient;

@SuppressWarnings("serial")
public class VisitedLocFormat extends Format{

	/*
	 * (non-Javadoc)
	 * @see java.text.Format#format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition)
	 */
	@Override
	public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) {
		
		Number num = (Number) obj;

		//Location loc = (Location)obj;
		//Location loc = new Location(num.intValue());
		toAppendTo.append(obj.toString());
		return toAppendTo;
	}

	/*
	 * (non-Javadoc)
	 * @see java.text.Format#parseObject(java.lang.String, java.text.ParsePosition)
	 */
	@Override
	public Object parseObject(String arg0, ParsePosition arg1) {
		// TODO Auto-generated method stub
		return null;
	}

}
